<template>
    <div>
        <van-pagination v-model="page" :total-items='total' :items-per-page='page_size' @change="change"></van-pagination>
    </div>
</template>

<script>
    export default {
        props:['total','page_size'],
        data(){
            return{
                page:1
            }
        },
        methods:{
            change(value){
                this.$emit('cpage',value)
            }
        }
    }
</script>

<style scoped>

</style>